package data.visu.structures;

import controls.visu.CurveControl;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class FrameValueCurveControl {
	
	private int frame;
	private double value;
	private CurveControl curveControl;
	
	public FrameValueCurveControl(int frame, double value, CurveControl curveControl){
		setFrame(frame);
		setValue(value);
		setCurveControl(curveControl);
	}
	
	@Override
	public String toString(){
		if(curveControl!=null)return "frame="+frame+", value="+value+", curveControl="+curveControl.getName();
		else return "frame="+frame+", value="+value+", curveControl=null";
	}

	public void setFrame(int frame) {
		this.frame = frame;
	}

	public int getFrame() {
		return frame;
	}

	public void setValue(double value) {
		this.value = value;
	}

	public double getValue() {
		return value;
	}

	public void setCurveControl(CurveControl curveControl) {
		this.curveControl = curveControl;
	}

	public CurveControl getCurveControl() {
		return curveControl;
	}
}
